package com.xtgg.login;

import com.xtgg.R;
import com.xtgg.manager.BaseActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class FirstActivity extends BaseActivity implements OnClickListener {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_first);

		findViewById(R.id.login).setOnClickListener(this);
		findViewById(R.id.regist).setOnClickListener(this);
	}

	@Override
	public void onClick(View arg0) {
		int viewId = arg0.getId();
		if (R.id.login == viewId) {
			startActivity(new Intent(this, LoginActivity.class));
		} else if (R.id.regist == viewId) {
			Intent intent = new Intent(this, TelCodeActivity.class);
			intent.putExtra("type", "regist");
			startActivity(intent);
		}
	}
}
